@echo Off
@PROMPT [Com]# 


::vs clean
call :removeFolders bin
call :removeFolders obj
:: call :removeFolders publish

:: nuget包, 可自动下载
call :removeFolders packages

@del ~$* /f /s /q /a
:: @del AssemblyInfo.cs /f /s /q /a

pause
goto :eof










:removeFolders
@for /R %%s in (.) do (
	::@echo %%s
	if exist "%%s\%1" (
		::remove
		rd /s /q "%%s\%1"
		echo remove:%%s\%1
	)
)
goto :eof

:removeFiles
@del %1 /f /s /q /a
goto :eof